package com.google.gwt.sample.contacts.client.action;

import com.google.gwt.sample.contacts.shared.Contact;

import com.guit.client.command.action.Action;
import com.guit.client.command.action.ActionHandler;

@ActionHandler("com.google.gwt.sample.contacts.server.UpdateContactHandler")
public class UpdateContactAction implements Action<UpdateContactResponse> {

    private Contact contact;

    public UpdateContactAction(Contact contact) {
        this.contact = contact;
    }

    public UpdateContactAction() {
    }

    public void setContact(Contact contact) {
        this.contact = contact;
    }

    public Contact getContact() {
        return contact;
    }
}